"""LearnProject2 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.urls import path, re_path
from django.views.static import serve
from app01 import views
from app01.gather_view import account, team, customer, dashboard,staff

urlpatterns = [

    # path('admin/list/', admin.admin_list),
    # path('admin/add/', admin.admin_add),
    # path('admin/<int:nid>/edit/', admin.admin_edit),
    # path('admin/<int:nid>/delete/', admin.admin_delete),
    # path('admin/<int:nid>/reset/', admin.admin_reset),

    path('login/', account.login),
    path('register/', account.register),
    path('logout/', account.logout),
    path('image/code/', account.image_code),
    path('change/password/', account.change_password),


    path('staff/list/', staff.staff_list),
    path('staff/post/', staff.staff_post),
    path('staff/delete/', staff.staff_delete),
    path('staff/export_excel/', staff.staff_export_excel),

    path('team/list/', team.team_list),
    path('team/post/', team.team_post),
    path('team/delete/', team.team_delete),

    path('team/edit/', team.team_edit),


    path('customer/list/', customer.customer_list),
    path('customer/post/', customer.customer_post),
    path('customer/add/', customer.customer_add),
    path('principal/post/', customer.principal_post),

    path('customer/delete/', customer.customer_delete),
    path('customer/edit/', customer.customer_edit),

]
